file = open("python面向对象及高级/05_文件.py/TEXT.txt")
file_copy = open("python面向对象及高级/05_文件.py/TEXT.copy1.txt","w")

# 复制文件
while True:
    text = file.readline()
    # 判断是否读取到内容
    if not text:
        break
    file_copy.write(text)

file.close()
file_copy.close()

